/*
 * @Author: SailorCai
 * @Date: 2020-12-01 22:59:46
 * @LastEditors: SailorCai
 * @LastEditTime: 2020-12-02 22:57:41
 * @FilePath: /my_daily/docs/.vuepress/config.js
 */
module.exports = {
  title: 'SailorCai 的个人主页',  // 设置网站标题
  description : 'Adroi',
  base : '/blog/',
  head: [
    ['link', { rel: 'shortcut icon', type: 'image/x-icon', href: '/logo.ico' }]
  ],
  themeConfig : {
    logo: '/assets/img/avatar.jpg',
    nav : [
      { text: '主页', link: '/' },
      { text: '服务器', link: '/serverend/' },
      { text: '前端', link: '/frontend/' },
      { text: '生活随笔', link: '/life/' }
    ],
    sidebar: {
      '/serverend/': [
        '/serverend/',
        {
          title: 'docker',
          // path: '/',
          collapsable: false,
          children: ['docker_anz', 'learn_docker_1','learn_docker_2', 'Dockerfile_1'],
          // initialOpenGroupIndex: '1',
        },
        {
          title: '服务器笔记',
          // path: '/',
          collapsable: false,
          children: ['ubuntu_node',],
          // initialOpenGroupIndex: '1',
        },
      ],
      '/frontend/': [
        '/frontend/',
        {
          title: 'docker 入门',
          // path: '/',
          collapsable: false,
          children: ['keep_alive'],
          // initialOpenGroupIndex: '1',
        },
      ],
      '/life/': [
        '/life/',
        {
          title: '生活琐碎',
          // path: '/',
          collapsable: false,
          children: ['house', 'huizhou_house'],
          // initialOpenGroupIndex: '1',
        },
      ]
    },
    // sidebarDepth : 2
  },
  configureWebpack: {
    resolve: {
      alias: {
        '@': './'
      }
    }
  }
}